from django.db import models

# Create your models here.


class UserInfo(models.Model):
    name = models.CharField(max_length=32)
    password = models.CharField(max_length=64)
    age = models.IntegerField()

class Department(models.Model):
    title = models.CharField(max_length=16)

# 新建
# Department.objects.create(title="销售部")
# UserInfo.objects.create(name="yyl", password="123", age=24)

# 删除
# Department.objects.filter(id=2).delete()




